package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author stone
 * @date 2022/11/15 16:40
 */
@Controller
@ResponseBody
public class URLMappingController {

    @RequestMapping("hello")
    public String hello() {
        return "hello world";
    }
    @RequestMapping({"index","home","home/index"})
    public String index() {
        return "index";
    }
    @RequestMapping({"goodbye*","goodbye/*"})
    public String goodbye() {
        return "byebye";
    }
}
